<?php
namespace App\Repositories;

use App\Repositories\BaseRepository;
use App\Tag;

class TagRepository {
	use BaseRepository;

	protected $model, $table_name;

	public function __construct(Tag $tag) {
		$this->model = $tag;
		$this->table_name = 'tags';
	}

	protected function searchColumn($query, $where) {
		return $query->where('tag_name', 'like', "%{$where['tag_name']}%");
	}
}